/* 
 * File:   mbase.h
 * Author: chao
 *
 * Created on 2013年6月12日, 下午5:47
 */

#ifndef MBASE_H
#define	MBASE_H

#ifdef	__cplusplus
extern "C" {
#endif
#define LINUX_THREAD_ID 0
#define POSIX_THREAD_ID 1
    
    int m_close_file(int fd);
    int m_open_file(char *file_name, int flags);
    int get_file_sock(char *dir, char *file_name, int flags);
    char* strtrim(char *src);
    int m_access(char *file);
    int m_read(int fd, char *buf, size_t count);
    void* m_realloc(void *ptr, size_t size);

#ifdef	__cplusplus
}
#endif

#endif	/* MBASE_H */

